import request from '../request'

export function login(password:String,loginCode: String,wxOpenid: String) {
  return request.post('api/a/login', {
    loginCode,password,wxOpenid
  })
}

export function openIdLogin(code:String) {
  return request.get('api/a/fmzk/openIdLogin?code='+code)
}

export function infoSavePwd(oldPassword:String,newPassword:String,confirmNewPassword:String) {
  return request.post('api/a/fmzk/infoSavePwd',{oldPassword,newPassword,confirmNewPassword})
}
export function logout() {
  return request.post('api/a/fmzk/logout',{})
}

export function infoSaveBase(avatarBase64:String,userName: String,email: String,mobile: String,phone: String,sex:String,sign:String) {
  return request.post('api/a/fmzk/infoSaveBase',{avatarBase64,userName,email,mobile,phone,sex,sign})
}
